<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddTagToUsersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('t_user', function (Blueprint $table) {
            $table->integer('is_dealer')->default(0)->comment("是否是经销商:1是|0否");
            $table->integer('parent_dealer_id')->default(0)->comment("属于经销商id");
            $table->integer('active_dealer')->default(0)->comment("是否有效:1有效|0无效");
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('t_user', function (Blueprint $table) {
            //
        });
    }
}
